<!--{Atemplate tpl/header}-->

<!--{eval echo $this->Ahtml_js_aurl();}-->
<script>
var columns = {"$this->model->table":$column_json};
var url_info = '$this->Amodr-info-';
var model = $listjson;
function checkall(value) {
	if(value=='0'){
		jQuery(".checkbox").attr("checked","checked");
		jQuery("#chkall_del").removeAttr("disabled","disabled");
	}
	if(value=='1'){
		jQuery(".checkbox").removeAttr("checked","checked");
		jQuery("#chkall_del").attr("disabled","disabled");
	}
	if(value=='auth'){
		var chkall = jQuery("input:checked").val();
		if(chkall == null){
			alert('请先选择');
			return false;
		}else{
			return true;
		}
	}
}
var Awform = new Apps.form('alogs','Awform',{'add':{width:640,height:'auto'}},columns.$this->model->table);

jQuery(document).ready(function(){

});
</script>

<form action="" method="get" class="-main_top">
	<input type="button" value="栏目设置" onclick="Awform.column()"/>
	状态：
	<!--{form 'select','status',$status,'',$post[status]}--> 
	<select name="sop">
		<option value="">模糊查询</option>
		<!--{loop $column_sop $key $val}-->
		<option value="$key" <!--{if $key==$post[sop]}-->selected="selected"<!--{/if}-->>$val</option>
		<!--{/loop}-->
	</select>
	<input type="text" name="search" value="$post[search]" size="20"/>
	<input type="submit" value="搜索">
</form>
<div class="_data_column dis_none">
	<div class="_list">$column_html</div>
	<input type="submit" value="确定"/>
</div>
<!--{Atemplate alogs/left}-->
<div class="-main_list _host_right">
<form action="" method="POST">
<table class="-table">
	<tr>
		<th>
			<b>
				<a href="$page->theurl-aorder-id,$pages->neworder$pages->other">ID</a><br>
				<a href="$page->theurl-aorder-gzip,$pages->neworder$pages->other">压缩率</a><br>
				<a href="$page->theurl-aorder-body_bytes_sent,$pages->neworder$pages->other">大小</a>
			</b>
		</th>
		<th>
			<b>
				<a href="$page->theurl-aorder-datetime,$pages->neworder$pages->other">时间</a><br>
				<a href="$page->theurl-aorder-host,$pages->neworder$pages->other">主机</a><br>
				<a href="$page->theurl-aorder-res_time,$pages->neworder$pages->other">耗时</a> | 
				<a href="$page->theurl-aorder-req_time,$pages->neworder$pages->other">CGI时间</a>
			</b>
		</th>
		<th>
			<b>
				<a href="$page->theurl-aorder-ip,$pages->neworder$pages->other">IP</a><br>
				<a href="$page->theurl-aorder-forwarded_for,$pages->neworder$pages->other">真实IP</a>
			</b>
		</th>
		<th>
			<b>
				<a href="$page->theurl-aorder-uri,$pages->neworder$pages->other">URI</a><br>
				<a href="$page->theurl-aorder-referer,$pages->neworder$pages->other">来源</a><br>
				<a href="$page->theurl-aorder-user_agent,$pages->neworder$pages->other">用户代理</a>
			</b>
		</th>
		<th>
			<b>
				<a href="$page->theurl-aorder-method,$pages->neworder$pages->other">类型</a><br>
				<a href="$page->theurl-aorder-protocol,$pages->neworder$pages->other">协议</a><br>
				<a href="$page->theurl-aorder-status,$pages->neworder$pages->other">状态码</a>
			</b>
		</th>
	</tr>
<!--{loop $list $key $val}-->
<!--{eval
$mid = $val->$key_name;
}-->
	<tr>
		<td>
			<p>$val->id</p>
			<p>$val->gzip</p>
			<p>$val->body_bytes_sent</p>
		</td>
		<td>
			<p title="$val->date">$val->datetime</p>
			<p>$val->host</p>
			<p>$val->req_time | $val->res_time</p>
		</td>
		<td>
			<p><a href="$this->Aactr?sop=ip&search=$val->ip">$val->ip</a></p>
			<p><a href="$this->Aactr?sop=city&search=$val->city">$val->city</a>|<a href="$this->Aactr?sop=ipadd&search=$val->ipadd">$val->ipadd</a></p>
			<p><a href="$this->Aactr?sop=forwarded_for&search=$val->forwarded_for">$val->forwarded_for</a></p>
		</td>
		<td>
			<p class="uri" title="$val->uri"><a href="$this->Aactr?sop=uri&search=$val->uri">追踪</a> <a href="http://$val->host$val->uri" target="_blank">$val->uri</a></p>
			<p class="referer" title="$val->referer"><a href="$this->Aactr?sop=referer&search=$val->referer">追踪</a> <a href="$val->referer">$val->referer</a></p>
			<p class="user_agent" title="$val->user_agent"><a href="$this->Aactr?sop=user_agent&search=$val->user_agent">$val->user_agent</a></p>
		</td>
		<td>
			<p><a href="$this->Aactr?sop=method&search=$val->method">$val->method</a></p>
			<p><a href="$this->Aactr?sop=protocol&search=$val->protocol">$val->protocol</a></p>
			<p><a href="$this->Aactr?sop=status&search=$val->status">$val->status</a></p>
		</td>
		<td></td>
	</tr>
<!--{/loop}-->
</table>
</form>
</div>
<!--{Atemplate alogs/nav}-->

<!--{Atemplate tpl/nofooter}-->